<?php

include("global.php");

 if ($_COOKIE['cookie'] != $cookievalue){

 	echo "<script language=\"javascript\">location.href='404.php';</script>";
 }

 include("conn.php");
 $del="delete from diary where id=".$_GET['id'];
 mysql_query($del);
 mysql_close();
 header("location:info_delete.php");



?>